#include "ThreadPool.hpp"
#include <memory>
#include "Task.hpp"

using namespace ThreadPoolModule;

int main(){
    ENABLE_CONSOLE_LOG();

    std::unique_ptr<ThreadPool<task_t>> tp = std::make_unique<ThreadPool<task_t>>();
    tp->Start();

    int cnt=15;
    while(cnt){
        tp->Enqueue(Push);
        cnt--;
        sleep(1);
    }

    tp->Stop();

    sleep(3);
    tp->Wait();

    return 0;
}